package com.paobuji.aidebao.myapplication.tool;

import java.util.Random;

/**
 * Created by lenovo on 2017/3/14.
 */

public class DataTools {
    /**
     * 产生随机数
     * @param min
     * @param max
     * @return
     */
    public static int  randomInt(final int min, final int max){

        Random rand= new Random();

        int tmp = Math.abs(rand.nextInt());

        return tmp % (max - min + 1) + min;
    }
}
